<?php
class ActivityShareVo extends SzAbstractMySqlVo
{

    private $indexId;
    private $friendId;
    private $position;
    private $isAward;

    /**
     * Initialize ActivityShareVo.
     *
     * @param $indexId
     * @param $friendId
     * @param $position
     * @param $isAward
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ActivityShareVo
     */
    public function __construct($indexId, $friendId, $position, $isAward, $isInsert = false) {
        $this->indexId = $indexId;
        $this->friendId = $friendId;
        $this->position = $position;
        $this->isAward = $isAward;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ActivityShareVo';
        $this->ormName = 'ActivityShare';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'indexId' => $this->getIndexId(),
            'friendId' => $this->getFriendId(),
            'position' => $this->getPosition(),
            'isAward' => $this->getIsAward(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'indexId' => $this->getIndexId(),
            'friendId' => $this->getFriendId(),
            'position' => $this->getPosition(),
            'isAward' => $this->getIsAward(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getIndexId(),
            $this->getFriendId(),
            $this->getPosition(),
            $this->getIsAward(),
        );
    }

    public function getIndexId()
    {
        return $this->indexId;
    }

    public function setIndexId($val)
    {
        $this->saveColumnStatus(0, $this->indexId);
        $this->indexId = $val;
    }

    public function getFriendId()
    {
        return $this->friendId;
    }

    public function setFriendId($val)
    {
        $this->saveColumnStatus(1, $this->friendId);
        $this->friendId = $val;
    }

    public function getPosition()
    {
        return $this->position;
    }

    public function setPosition($val)
    {
        $this->saveColumnStatus(2, $this->position);
        $this->position = $val;
    }

    public function getIsAward()
    {
        return $this->isAward;
    }

    public function setIsAward($val)
    {
        $this->saveColumnStatus(3, $this->isAward);
        $this->isAward = $val;
    }

}